var mongoose = require('mongoose'),
    materializedPlugin = require('mongoose-materialized'),
    Schema = mongoose.Schema;

var CategorySchema = new Schema({
    type: { type: Number },
    text: { type: String }
});


CategorySchema.plugin(materializedPlugin);

module.exports = mongoose.model('Category', CategorySchema); // Category